/**
 * Created by Administrator on 15-6-9.
 */
$().ready(function () {
    $('#id_username').addClass('form-control').attr({
        placeholder:'请输入用户名'
    }).focus();
    $('#id_password').addClass('form-control').attr({
         placeholder:'请输入密码'
    });
    $('#id_password_confirm').addClass('form-control').attr({
        placeholder: '请确认密码'
    });
   var vf = $('.form-horizontal').Validform({
        tiptype:2
    });
    vf.addRule([{
        ele:"#id_username",
        datatype:"*",
        ajaxurl:"/user/"
    },{
        ele:"#id_password",
        datatype:'*'
    },{
        ele:"#id_password_confirm",
        datatype:'*',
        recheck:"password"
    }])
});
